package com.nlx.notes.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户的配置项信息
 * </p>
 *
 * @author nlx
 * @since 2025-08-24
 */
@Getter
@Setter
@TableName("system_preferences")
public class SystemPreferences implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户配置项key
     */
    private String prefKey;

    /**
     * 用户配置项的值
     */
    private String prefValue;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建事件
     */
    private LocalDateTime createdTime;

    /**
     * 更新事件
     */
    private LocalDateTime updatedTime;

    /**
     * 记录状态
     */
    private Integer delFlag;
}
